package cn.jee.repository;

import cn.jee.entity.Stu;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StuRepository extends JpaRepository<Stu,Long> {
  List<Stu> findByTeacherIsNull();
  List<Stu> findByTeacherId(Long teacherId);
}